const uniID = require('uni-id-common')

const getUserInfo = function(that) {
  const clientInfo = that.getClientInfo()
  const token = that.getUniIdToken()
  const uniIDIns = uniID.createInstance({ // 创建uni-id实例，其上方法同uniID
    clientInfo
  })
  const userInfo = uniIDIns.checkToken(token)
  return userInfo
}


module.exports = {
  getUserInfo
}